package com.huatai.datacenter.entity.datamodel;

import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

/**
 * 新建映射模型传入的包装类
 *
 * @author lizhong
 */
@Data
@JsonInclude(JsonInclude.Include.NON_NULL)
@ApiModel(value = "新建映射模型传入的包装类", description = "新建映射模型传入的包装类")
public class MappingModelDTO {

	@ApiModelProperty(value = "映射模型id", required = true)
	private Long mappingModelId;

	@ApiModelProperty(value = "映射模型名称", required = true)
	private String mappingModelName;

	@ApiModelProperty(value = "数据模型id", required = true)
	private Long dataModelId;

	@ApiModelProperty(value = "数据模型名称", required = true)
	private String dataModelName;

	// 一一对应
	@ApiModelProperty(value = "数据模型字段集合", required = true)
	private List<DataModelFieldEntity> dataFields;

	// 一一对应
	@ApiModelProperty(value = "映射模型字段集合", required = true)
	private List<MappingModelFieldEntity> mappingFields;

}
